<?php
namespace Api\Controller;
use Think\Controller;
class MasterController extends Controller {
   public function masterlist(){
        $masterModel=M('master');
        $data=$masterModel->order('mid')->select();
        echo json_encode($data);
    }

    public function Masterdetail(){
    	$id=$_GET['mid'];
        $masterModel=M('master');
        $data=$masterModel->where("mid='$id'")->select();
        echo json_encode($data);
    }
}